import request from '@/utils/request';

export async function queryMenu(): Promise<any> {
  return request('/api/menu', {
    method: 'GET',
  });
}

export async function createMenu<T>(params: T): Promise<any> {
  return request('/api/createMenu', {
    method: 'POST',
    data: params,
  });
}
